
import { reactive } from 'vue';
import { INPUT_PLACEHOLDER, SELECT_PLACEHOLDER } from '@/const';

// form规则校验
export const RULES = reactive({
	// avatar: [
	// 	{
	// 		required: true,
	// 		message: '请上传头像',
	// 	},
	// ],
	name: [
		{
			required: true,
			message: INPUT_PLACEHOLDER,
		},
	],
	birth: [
		{
			required: true,
			message: SELECT_PLACEHOLDER,
		},
	],
	card: [
		{
			required: true,
			message: INPUT_PLACEHOLDER,
		},
	],
	sex: [
		{
			required: true,
			message: SELECT_PLACEHOLDER,
		},
	],
	emergencyName: [
		{
			required: true,
			message: INPUT_PLACEHOLDER,
		},
	],
	emergencyPhone: [
		{
			required: true,
			message: INPUT_PLACEHOLDER,
		},
	],
	capability: [
		{
			required: true,
			message: '请选择',
		},
	],
	cognitive: [
		{
			required: true,
			message: '请选择',
		},
	],
	careLevel: [
		{
			required: true,
			message: '请选择',
		},
	],
	checkInDate: [
		{
			required: true,
			message: '请选择',
		},
	],
	room: [
		{
			required: true,
			message: '请输入',
		},
	],
	checkInMethod: [
		{
			required: true,
			message: '请选择',
		},
	],
	packages: [
		{
			required: true,
			message: '请选择',
			type: 'array'
		},
	],
});
